import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
    state: {
        loginState : false,
        userInfo:{},
        mobile : '',
        user_name:""
    },
    mutations: {
        //更新手机号
        updateMobile(state,status){
            state.mobile = status;
        },
        //修改登陆状态
        updateUserInfo(state,status){
            state.userInfo = status;
        },
        //修改登陆状态
        updateLoagin(state,status){
            state.loginState = status;
        },
        //更新手机号
        updateName(state,status){
            state.user_name = status;
        },
    },
    actions: {}
})
export default store